﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
namespace Imaginarium.loader
{
    class Loader
    {
        public static ContentManager content;
        public static void initialize(ContentManager c)
        {
            content = c;
        }

        public static Texture2D LoadTexture(String textureName) {
            try
            {
                return content.Load<Texture2D>(textureName);
            }catch(ContentLoadException e){
                return null;
            }
        }
    }
}
